module.exports = {
  insert ( colName, insertData ) {
    console.log('1111111111')
    return new Promise((resolve, reject) =>{
      colName.insertMany(insertData, (err) =>{
        if (err) throw err
        resolve()
      })
    })
  },
  delelte () {

  },
  update () {

  },
  find (colName, whereObj, showObj) {
    return new Promise(resolve => {
      colName.find(whereObj, showObj).exec((err, data) => {
        if (err) throw err;
        resolve(data)
      })
    })
  }
}